package com.yuma.factory.abstractfactory;

public class FactoryTest {
    public static void main(String[] args) {
        IFactory factory = new Apple();
        factory.createPhone(); // 创建苹果手机
        factory.createComputer();

        IFactory factory2 = new HuaWei();
        factory2.createPhone(); // 创建
        factory2.createComputer();
    }
}
